Page({
  data:{
    url:''
  },
  onLoad:function(){
    //说明 i 代表公众号的unionid 没这个无法使用公众号的页面
    //appUnionid 算是项目的unionid 新加字段 区分不同的项目
    //问题？后台如何把appUnionid参数带过去呢
    // var url = "https://wkcy2.sjwke.com/app/index.php?i=34&c=entry&id=54&do=index&m=wdl_bigwheel&appUnionid=666";
    var url ="https://www.sjwke.com/app/index.php?i=36&c=entry&id=48&do=index&m=wdl_bigwheel&&appUnionid=666";
    //&wxref=mp.weixin.qq.com#wechat_redirect
    var userInfo = getApp().getCache("userinfo");
    var openid = userInfo.openid;
    if(!openid){
      wx.showToast({
        title: '请获取用户信息',
      })
      return false
    }
    url = url+"&openid="+openid.replace(/sns_wa_/img,'')+"&nickName="+userInfo.nickname;
    this.setData({url:url})
  }
})